import React from "react";
import { Button } from "antd";
import T, { updateLanguage, getLocal } from "base/intl";
import _ from 'lodash';

export default function Home() {
  function updateLocale() {
    const locale = getLocal();

    updateLanguage(locale === "en" ? "zh" : "en");
  }
  return (
    <div>
      Home
      <span>{T("greeting", "_ace29f")}</span>
      <Button onClick={updateLocale}>{T("切换语言", "_f79805")}</Button>
    </div>);

}